# -*- coding: utf-8 -*-
"""
@ Created on 2024-06-14 12:23
---------
@summary: 
---------
@author: XiaoBai
"""
import argparse

from log import logger

parser = argparse.ArgumentParser(description="FastAPI服务")
parser.add_argument("--env", type=str, default="dev", choices=["dev", "test", "pro"], help="选择运行环境变量")

args = parser.parse_args()

if args.env == "pro":
    # 生产环境配置
    logger.info("----------以生产环境运行------------")
    from settings import production as settings

elif args.env == "test":
    logger.info("----------以测试环境运行------------")
    from settings import test as settings

else:
    # 开发环境配置
    logger.info("----------以开发环境运行------------")
    from settings import develop as settings


REDISDB_IP_PORTS = "192.168.1.1:6379"
REDISDB_USER_PASS = 'Python'
REDISDB_DB = 0

EMAIL_RECEIVER_USERNAME = ""  # 邮箱号
EMAIL_RECEIVER_PASSWORD = ""  # 邮箱服务密码
EMAIL_RECEIVER_IMTPSERVER = "imap.exmail.qq.com"
